package pl.mess.core.tags.elements;

import pl.mess.core.tags.ifc.ControlAttribute;

import javax.servlet.jsp.JspException;
import java.util.List;
import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: gibffe
 * Date: Apr 9, 2006
 * Time: 2:54:56 PM
 * To change this template use File | Settings | File Templates.
 */
public class MESSTabTag extends MESSBaseTag {

    private static final String TAG_NAME = "tab";

    /**
     * Tab size (width or height) in pixels
     */
    @ControlAttribute public Integer tabSize = null;

    /**
     * Tab title string
     */
    @ControlAttribute public String title = null;

    /**
     * Tab content description string
     */
    @ControlAttribute public String description = null;

    /**
     * Returns tag name
     * @return
     */
    public String getTagName() {
        return TAG_NAME;    
    }

    /**
     * doStartTag method. Add control-specific logic here.
     * @return
     * @throws javax.servlet.jsp.JspException
     */
    public int doStartTag() throws JspException {
        return super.doStartTag();
    }

    /**
     * doEndTag method. Add control-specific logic here.
     * @return
     * @throws JspException
     */
    public int doEndTag() throws JspException {
        return super.doEndTag();
    }

    // property:  tabSize
    public Integer getTabSize() {
        return this.tabSize;
    }

    public void setTabSize(Integer tabSize) {
        this.tabSize = tabSize;
    }

    // property:  title
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    // property: description

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
